package com.atguigu.mvc.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller

// 在类上标记的 @RequestMapping 映射访问地址中表示同一个模块的部分
// 具体执行匹配操作时，需要将类级别 @RequestMapping 注解和方法级别 @RequestMapping 注解中指定的地址拼接起来
@RequestMapping("/user")
public class Operation03Handler {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping("/show/list")
    public String showList() {

        logger.debug("[测试@RequestMapping注解标记在类上~]显示员工列表");

        return "target";
    }

    @RequestMapping("/pay")
    public String pay() {

        logger.debug("[测试@RequestMapping注解标记在类上~]氪金");

        return "target";
    }

    @RequestMapping("/alter/password")
    public String alterPwd() {

        logger.debug("[测试@RequestMapping注解标记在类上~]改密码");

        return "target";
    }

}
